package com.bwda.dsrs.filecenter.domain.form.keyrule;

import com.bwda.dsrs.base.util.DateUtil;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Size;
/**
 * @author Administrator
 */
@Data
@ApiModel(description = "秘钥规则")
public class KeyRuleCreateForm {

	@Size(min = 2,max = 30,message = "长度在2-30之间")
	@ApiModelProperty(value = "规则名称")
	private String ruleName;

	@ApiModelProperty(value = "是否含字母0包含1不包含")
	private Integer hasLetter;

	@ApiModelProperty(value = "是否含数字0包含1不包含")
	private Integer hasNumber;

	@ApiModelProperty(value = "是否含符号0包含1不包含")
	private Integer hasCharacter;

	@ApiModelProperty(value = "固定长度")
	private Integer fixedLength;

	@ApiModelProperty(value = "最小长度")
	private Integer minLength;

	@ApiModelProperty(value = "最大长度")
	private Integer maxLength;

	@ApiModelProperty(value = "字母个数")
	private Integer letterCount;

	@ApiModelProperty(value = "数字个数")
	private Integer numberCount;

	@ApiModelProperty(value = "字符个数")
	private Integer characterCount;

	@ApiModelProperty(value = "特殊字符内容")
	private String characterContent;

	@ApiModelProperty(value = "创建时间,格式为:" + DateUtil.FORMAT)
	@DateTimeFormat(pattern = DateUtil.FORMAT)
	private Date createTime;

	@ApiModelProperty(value = "更新时间,格式为:" + DateUtil.FORMAT)
	@DateTimeFormat(pattern = DateUtil.FORMAT)
	private Date updateTime;

	@Size(max = 140,message = "备注长度应在0-140之间")
	@ApiModelProperty(value = "备注")
	private String remark;

	@ApiModelProperty(value = "算法(SM4,AES,DES3,RSA,SM2)")
	private String algorithm;

	@ApiModelProperty(value = "0未删除 1已删除")
	private Integer delFlag;

}